﻿using System;

using AnB.Common;
using AnB.Net;

namespace AnB.App.Handler
{
    public class System
    {
        public static long Timestamp(Connection connection, long timestamp)
        {
            DateTime UnixTimestampStart = new DateTime(1970, 1, 1).ToLocalTime();
            long timestamp1 = (long)DateTime.Now.Subtract(UnixTimestampStart).TotalMilliseconds;
            Log.Get().InfoFormat("Timestamp {0} --------------------- {1}", timestamp, timestamp1);
            return timestamp1;
        }
        public static string Echo(Connection connection, string text)
        {
            return text;
        }
    }
}
